PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Appearance Manager >

Programming With the Appearance Manager


Using Theme Text Colors

The Appearance Manager also provides a wide variety of text colors for drawing the text of a control. Again, instead of hard-coding color values for text, use the Appearance Manager's ThemeTextColor constants, described in Theme Text Color Constants , which identify a particular context in which text is used. You can pass a constant of type ThemeTextColor to the function SetThemeTextColor to specify that the Appearance Manager substitute whatever the appropriate text color is for a given context under the current theme. You can use the function GetThemeTextColor to obtain the actual color in use under the current theme for the specified ThemeTextColor constant. When you use the ThemeTextColor constants in your program, the Appearance Manager automatically applies the correct color for text in the current theme.


© 1999 Apple Computer, Inc. – (Last Updated 29 April 99)